﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Teacher:Person
    {
        private string title;
        private string wageno;
        public Teacher(int id, string name, char sex, string cardid, string tel)
            : base(id, name, sex, cardid, tel)
        {

        }
        public string Title
        {
            get { return this.title; }
            set { this.title = value; }
        }
        public string Wageno
        {
            get { return this.wageno; }
            set { this.wageno = value; }
        }
        public void stud()
        {
            Console.WriteLine("职业：{0}", this.title);
            Console.WriteLine();
            Console.WriteLine("工资号：{0}", this.wageno);

        }
    }
}
